<div id="qbyx" class="container-fixed" data-target="#navbar-example" data-offset="0" >
    <div class="row text-center">
        <h1 id="qbyx">全部游戏</h1>
        <hr>
    </div>
    <!-- 循环出$gameshops 中的数据存入$gameshop -->
    
    <div class="row">
    @foreach($gameshops as $gameshop)
            <?php 
			    $file = $gameshop->file;
			    $gameurl = "./static/img/";
			    $gameurl .= $file;
			?>
        <div class='col-md-3 col-sm-6 col-xs-12 text-center'>
            <div style='width: 250px;height: 250px;margin: 0px auto'>
                <img src='{{$gameurl}}' alt='游戏封面图片' style='width:100%;height:100%;'>
            </div>
            <br>
            <a href="{{url('other/gameMessage',['name'=>$gameshop->name])}}">{{$gameshop->name}}</a><br>
            @for($i = 0; $i < $gameshop->one;$i++)
            <span>⭐</span>
            @endfor
            <br>
            <span>￥{{$gameshop->jiage}}元</span>
        </div>
        @endforeach
    </div>
</div>
